# Copyright (C) 2007, 2011 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
#
# Author: Andreas Waechter     2007-10-08     IBM

# NOTE: We assume here that there are no spaces in paths.
#   If you are on Windows and have Java in a path like C:\Program Files\Java,
#   try setting JAVA_HOME to the DOS equivalent C:\Progra~1 or similar.

# Java compiler
JAVAC = @JAVAC@

# Java runtime
JAVA = @JAVA@

# Ipopt JAR
prefix = @prefix@
exec_prefix = @exec_prefix@
IPOPTJAR = @libdir@/org.coinor.ipopt.jar

# Directory to the sources for the (example) problem definition files
SRCDIR = @srcdir@
VPATH = @srcdir@

##########################################################################

.SUFFIXES: .java .class

.java.class:
	$(JAVAC) -cp $(IPOPTJAR):. `test -f '$<' || echo '$(SRCDIR)/'`$< -d $(PWD)

all : SolveProblem.class

SolveProblem.class : LuksanVlcek1.class

LuksanVlcek1.class : Scalable.class

test : SolveProblem.class
	$(JAVA) -cp $(IPOPTJAR):. -Djava.library.path=@libdir@ SolveProblem LukVlI1 100

clean :
	rm -rf *.class
